<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title><?php echo $cfg_webname; ?></title>
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
	<meta http-equiv="Cache-Control" content="no-siteapp" />
	<link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css">
	<link rel="stylesheet" href="http://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css">
	<link rel="stylesheet" href="http://cdn.bootcss.com/animate.css/3.5.2/animate.min.css">
	<link rel="stylesheet" href="css/mq-simple.css">
</head>
<body class="loginpage">


	<section class="adminLoginForm animated bounceInLeft">

		<div class="box">
			<h1><img src="images/logo-1.png"></h1>
			<form name="form1" method="post" action="login.php" class="form-horizontal">
		    <input type="hidden" name="gotopage" value="<?php if(!empty($gotopage)) echo RemoveXSS($gotopage);?>" />
		    <input type="hidden" name="dopost" value="login" />
		    <input name='adminstyle' type='hidden' value='newdedecms' />
				<div class="form-group">
					<label for="inputEmail3" class="col-sm-2 col-xs-12 control-label">账号</label>
					<div class="col-sm-10 col-xs-12">
						<input type="text" name="userid" class="form-control" id="inputEmail3" placeholder="管理员账号" required/>
					</div>
				</div>
				<div class="form-group">
					<label for="inputEmail3" class="col-sm-2 col-xs-12 control-label">密码</label>
					<div class="col-sm-10 col-xs-12">
						<input type="password" name="pwd" class="form-control" id="inputEmail3" placeholder="密码" required/>
					</div>
				</div>
				<?php
        	if(preg_match("/6/",$safe_gdopen))
	        	{
	        ?>
				<div class="form-group">
					<label for="inputEmail3" class="col-lg-2 col-sm-2 col-xs-12 control-label">验证码</label>
					<div class="col-lg-8 col-sm-8 col-xs-8">
						<input type="text" name="validate" class="form-control" id="inputEmail3" placeholder="验证码" maxlength="4" minlength="4" required/>
					</div>
					<div class="col-lg-2 col-sm-2 col-xs-4 codes">
						<img id="vdimgck" align="absmiddle" onClick="this.src=this.src+'?'" style="cursor: pointer;" alt="看不清？点击更换" src="../include/vdimgck.php"/>
					</div>
				</div>
					<?php
       		}
		?>
				<div class="form-group">
					<div class="col-xs-12">
						<button type="submit" name="sm1" class="btn btn-default" onClick="this.form.submit();">登录</button>
					</div>
				</div>
			</form>
		</div>

		<footer class="loginFooter">
			develop & design by <a href="http://www.zhzest.com" target="_blank">珠海横琴卓尔商通科技有限公司</a>
		</footer>
		
	</section>

	<script type="text/javascript">
	$ = jQuery;
	function changeAuthCode() {
		var num = 	new Date().getTime();
		var rand = Math.round(Math.random() * 10000);
		num = num + rand;
		$('#ver_code').css('visibility','visible');
		if ($("#vdimgck")[0]) {
			$("#vdimgck")[0].src = "../include/vdimgck.php?tag=" + num;
		}
		return false;	
	}
	</script>


	
	<!--[if lt IE 9]>
	<script src="http://cdn.bootcss.com/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
	<![endif]-->
	<script src="http://cdn.bootcss.com/jquery/2.2.4/jquery.min.js"></script>
	<script src="http://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
	<script src="js/jquery.gradientify.min.js"></script>
	<script>
	$(document).ready(function() {
		$("body").gradientify({
			gradients: [
				{ start: [79,195,186], stop: [91,181,218] },
				{ start: [249,169,173], stop: [240,154,241] }
			]
		});
	});
    </script>
</body>
</html>